<blockquote>
    <p>War 模式启动</p>
    <footer>通过在webapp目录下面的web.xml文件中配置启动类来进行启动</code>
    </footer>
</blockquote>
<h5>示例 <code>web.xml</code>配置</h5>
<pre class="code brush:xml">
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
		  http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
             version="3.0">

        <!-- ants 框架配置-->
        <filter>
            <filter-name>antsFilter</filter-name>
            <filter-class>cn.jants.core.context.AntsFilter</filter-class>
            <init-param>
                <param-name>loadClass</param-name>
                <!--指定项目启动类-->
                <param-value>cn.jants.demos.DemosApplication</param-value>
            </init-param>
        </filter>
        <filter-mapping>
            <filter-name>antsFilter</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
    </web-app>

</pre>
<h5>如果遇到Tomcat出现错误或卡死, 可以尝试在resource目录下面放入<code>logging.properties</code>文件配置如下</h5>
<pre class="code brush:plain">
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = error-debug.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
</pre>
<h5>成功启动视图</h5>
<img src="debug/start.png" style="max-width: 1000px;"/>
<script type="text/javascript">
    $(function () {
        SyntaxHighlighter.highlight();
        $(".toolbar").remove();
    });
</script>